# Config file for collectd(1).
#
# Some plugins need additional configuration and are disabled by default.
# Please read collectd.conf(5) for details.
#
# You should also read /usr/share/doc/collectd-core/README.Debian.plugins
# before enabling any more plugins.

##############################################################################
# Global                                                                     #
#----------------------------------------------------------------------------#
# Global settings for the daemon.                                            #
##############################################################################

Hostname "{{ inventory_hostname }}"
FQDNLookup false
#BaseDir "/var/lib/collectd"
#PluginDir "/usr/lib/collectd"
#TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db"

#----------------------------------------------------------------------------#
# When enabled, plugins are loaded automatically with the default options    #
# when an appropriate <Plugin ...> block is encountered.                     #
# Disabled by default.                                                       #
#----------------------------------------------------------------------------#
#AutoLoadPlugin false

#----------------------------------------------------------------------------#
# Interval at which to query values. This may be overwritten on a per-plugin #
# base by using the 'Interval' option of the LoadPlugin block:               #
#   <LoadPlugin foo>                                                         #
#       Interval 60                                                          #
#   </LoadPlugin>                                                            #
#----------------------------------------------------------------------------#
#Interval 10

#Timeout 2
#ReadThreads 5
#WriteThreads 5

# Limit the size of the write queue. Default is no limit. Setting up a limit
# is recommended for servers handling a high volume of traffic.
#WriteQueueLimitHigh 1000000
#WriteQueueLimitLow   800000

##############################################################################
# Logging                                                                    #
#----------------------------------------------------------------------------#
# Plugins which provide logging functions should be loaded first, so log     #
# messages generated when loading or configuring other plugins can be        #
# accessed.                                                                  #
##############################################################################

#LoadPlugin logfile
LoadPlugin syslog

#<Plugin logfile>
#       LogLevel "info"
#       File STDOUT
#       Timestamp true
#       PrintSeverity false
#</Plugin>

<Plugin syslog>
        LogLevel info
</Plugin>

##############################################################################
# LoadPlugin section                                                         #
#----------------------------------------------------------------------------#
# Specify what features to activate.                                         #
##############################################################################

#LoadPlugin aggregation
#LoadPlugin amqp
#LoadPlugin apache
#LoadPlugin apcups
#LoadPlugin ascent
#LoadPlugin battery
#LoadPlugin bind
#LoadPlugin cgroups
#LoadPlugin conntrack
#LoadPlugin contextswitch
LoadPlugin cpu
#LoadPlugin cpufreq
#LoadPlugin csv
#LoadPlugin curl
#LoadPlugin curl_json
#LoadPlugin curl_xml
#LoadPlugin dbi
LoadPlugin df
LoadPlugin disk
#LoadPlugin dns
#LoadPlugin email
LoadPlugin entropy
LoadPlugin ethstat
#LoadPlugin exec
#LoadPlugin filecount
#LoadPlugin fscache
#LoadPlugin gmond
#LoadPlugin hddtemp
#LoadPlugin interface
#LoadPlugin ipmi
#LoadPlugin iptables
#LoadPlugin ipvs
LoadPlugin irq
#LoadPlugin java
#LoadPlugin libvirt
LoadPlugin load
#LoadPlugin lvm
#LoadPlugin madwifi
#LoadPlugin mbmon
#LoadPlugin md
#LoadPlugin memcachec
#LoadPlugin memcached
LoadPlugin memory
#LoadPlugin modbus
#LoadPlugin multimeter
#LoadPlugin mysql
#LoadPlugin netlink
#LoadPlugin network
#LoadPlugin nfs
#LoadPlugin nginx
#LoadPlugin notify_desktop
#LoadPlugin notify_email
#LoadPlugin ntpd
#LoadPlugin numa
#LoadPlugin nut
#LoadPlugin olsrd
#LoadPlugin openvpn
#<LoadPlugin perl>
#       Globals true
#</LoadPlugin>
#LoadPlugin pinba
#LoadPlugin ping
#LoadPlugin postgresql
#LoadPlugin powerdns
LoadPlugin processes
#LoadPlugin protocols
#<LoadPlugin python>
#       Globals true
#</LoadPlugin>
#LoadPlugin rrdcached
#LoadPlugin rrdtool
#LoadPlugin sensors
#LoadPlugin serial
#LoadPlugin snmp
#LoadPlugin statsd
LoadPlugin swap
#LoadPlugin table
#LoadPlugin tail
#LoadPlugin tail_csv
#LoadPlugin tcpconns
#LoadPlugin teamspeak2
#LoadPlugin ted
#LoadPlugin thermal
#LoadPlugin tokyotyrant
#LoadPlugin unixsock
#LoadPlugin uptime
LoadPlugin users
#LoadPlugin uuid
#LoadPlugin varnish
#LoadPlugin vmem
#LoadPlugin vserver
#LoadPlugin wireless
#LoadPlugin write_graphite
#LoadPlugin write_http
#LoadPlugin write_riemann

##############################################################################
# Plugin configuration                                                       #
#----------------------------------------------------------------------------#
# In this section configuration stubs for each plugin are provided. A desc-  #
# ription of those options is available in the collectd.conf(5) manual page. #
##############################################################################


#<Plugin apache>
#       <Instance "foo">
#               URL "http://localhost/server-status?auto"
#               User "www-user"
#               Password "secret"
#               VerifyPeer false
#               VerifyHost false
#               CACert "/etc/ssl/ca.crt"
#               Server "apache"
#       </Instance>
#
#       <Instance "bar">
#               URL "http://some.domain.tld/status?auto"
#               Host "some.domain.tld"
#               Server "lighttpd"
#       </Instance>
#</Plugin>

#<Plugin ascent>
#       URL "http://localhost/ascent/status/"
#       User "www-user"
#       Password "secret"
#       VerifyPeer false
#       VerifyHost false
#       CACert "/etc/ssl/ca.crt"
#</Plugin>

#<Plugin "cgroups">
#       CGroup "libvirt"
#       IgnoreSelected false
#</Plugin>

#<Plugin csv>
#       DataDir "/var/lib/collectd/csv"
#       StoreRates false
#</Plugin>

<Plugin df>
#       Device "/dev/sda1"
#       Device "192.168.0.2:/mnt/nfs"
#       MountPoint "/home"
#       FSType "ext3"

        # ignore rootfs; else, the root file-system would appear twice, causing
        # one of the updates to fail and spam the log
        FSType rootfs
        # ignore the usual virtual / temporary file-systems
        FSType sysfs
        FSType proc
        FSType devtmpfs
        FSType devpts
        FSType tmpfs
        FSType fusectl
        FSType cgroup
        IgnoreSelected true

#       ReportByDevice false
#       ReportReserved false
#       ReportInodes false

#       ValuesAbsolute true
#       ValuesPercentage false
</Plugin>

#<Plugin disk>
#       Disk "hda"
#       Disk "/sda[23]/"
#       IgnoreSelected false
#</Plugin>

#<Plugin dns>
#       Interface "eth0"
#       IgnoreSource "192.168.0.1"
#       SelectNumericQueryTypes false
#</Plugin>

#<Plugin email>
#       SocketFile "/var/run/collectd-email"
#       SocketGroup "collectd"
#       SocketPerms "0770"
#       MaxConns 5
#</Plugin>

#<Plugin ethstat>
#       Interface "eth0"
#       Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
#       Map "multicast" "if_multicast"
#       MappedOnly false
#</Plugin>

#<Plugin exec>
#       Exec user "/path/to/exec"
#       Exec "user:group" "/path/to/exec"
#       NotificationExec user "/path/to/exec"
#</Plugin>

#<Plugin filecount>
#       <Directory "/path/to/dir">
#               Instance "foodir"
#               Name "*.conf"
#               MTime "-5m"
#               Size "+10k"
#               Recursive true
#               IncludeHidden false
#       </Directory>
#</Plugin>

#<Plugin gmond>
#       MCReceiveFrom "239.2.11.71" "8649"
#
#       <Metric "swap_total">
#               Type "swap"
#               TypeInstance "total"
#               DataSource "value"
#       </Metric>
#
#       <Metric "swap_free">
#               Type "swap"
#               TypeInstance "free"
#               DataSource "value"
#       </Metric>
#</Plugin>

#<Plugin hddtemp>
#       Host "127.0.0.1"
#       Port 7634
#</Plugin>

#<Plugin interface>
#  Interface "lo"
#  Interface "brq.*"
#  Interface "tap.*"
#  IgnoreSelected true
#</Plugin>

#<Plugin ipmi>
#       Sensor "some_sensor"
#       Sensor "another_one"
#       IgnoreSelected false
#       NotifySensorAdd false
#       NotifySensorRemove true
#       NotifySensorNotPresent false
#</Plugin>

#<Plugin iptables>
#       Chain "table" "chain"
#</Plugin>

#<Plugin irq>
#       Irq 7
#       Irq 8
#       Irq 9
#       IgnoreSelected true
#</Plugin>

#<Plugin libvirt>
#       Connection "xen:///"
#       RefreshInterval 60
#       Domain "name"
#       BlockDevice "name:device"
#       InterfaceDevice "name:device"
#       IgnoreSelected false
#       HostnameFormat name
#       InterfaceFormat name
#</Plugin>

#<Plugin mbmon>
#       Host "127.0.0.1"
#       Port 411
#</Plugin>

#<Plugin md>
#       Device "/dev/md0"
#       IgnoreSelected false
#</Plugin>

#<Plugin memcached>
#       <Instance "local">
#               Socket "/var/run/memcached.sock"
# or:
#               Host "127.0.0.1"
#               Port "11211"
#       </Instance>
#</Plugin>

#<Plugin mysql>
#       <Database db_name>
#               Host "database.serv.er"
#               Port "3306"
#               User "db_user"
#               Password "secret"
#               Database "db_name"
#               MasterStats true
#       </Database>
#
#       <Database db_name2>
#               Host "localhost"
#               Socket "/var/run/mysql/mysqld.sock"
#               SlaveStats true
#               SlaveNotifications true
#       </Database>
#</Plugin>

#<Plugin netlink>
#       Interface "All"
#       VerboseInterface "All"
#       QDisc "eth0" "pfifo_fast-1:0"
#       Class "ppp0" "htb-1:10"
#       Filter "ppp0" "u32-1:0"
#       IgnoreSelected false
#</Plugin>

#<Plugin ntpd>
#       Host "localhost"
#       Port 123
#       ReverseLookups false
#       IncludeUnitID true
#</Plugin>

#<Plugin nut>
#       UPS "upsname@hostname:port"
#</Plugin>

#<Plugin olsrd>
#       Host "127.0.0.1"
#       Port "2006"
#       CollectLinks "Summary"
#       CollectRoutes "Summary"
#       CollectTopology "Summary"
#</Plugin>

#<Plugin ping>
#       Host "host.foo.bar"
#       Host "host.baz.qux"
#       Interval 1.0
#       Timeout 0.9
#       TTL 255
#       SourceAddress "1.2.3.4"
#       Device "eth0"
#       MaxMissed -1
#</Plugin>

#<Plugin powerdns>
#       <Server "server_name">
#               Collect "latency"
#               Collect "udp-answers" "udp-queries"
#               Socket "/var/run/pdns.controlsocket"
#       </Server>
#       <Recursor "recursor_name">
#               Collect "questions"
#               Collect "cache-hits" "cache-misses"
#               Socket "/var/run/pdns_recursor.controlsocket"
#       </Recursor>
#       LocalSocket "/opt/collectd/var/run/collectd-powerdns"
#</Plugin>

#<Plugin processes>
#       Process "name"
#       ProcessMatch "foobar" "/usr/bin/perl foobar\\.pl.*"
#</Plugin>

#<Plugin protocols>
#       Value "/^Tcp:/"
#       IgnoreSelected false
#</Plugin>

#<Plugin python>
#       ModulePath "/path/to/your/python/modules"
#       LogTraces true
#       Interactive true
#       Import "spam"
#
#       <Module spam>
#               spam "wonderful" "lovely"
#       </Module>
#</Plugin>

#<Plugin sensors>
#       SensorConfigFile "/etc/sensors3.conf"
#       Sensor "it8712-isa-0290/temperature-temp1"
#       Sensor "it8712-isa-0290/fanspeed-fan3"
#       Sensor "it8712-isa-0290/voltage-in8"
#       IgnoreSelected false
#</Plugin>

#<Plugin swap>
#       ReportByDevice false
#       ReportBytes true
#</Plugin>

#<Plugin table>
#       <Table "/proc/slabinfo">
#               Instance "slabinfo"
#               Separator " "
#               <Result>
#                       Type gauge
#                       InstancePrefix "active_objs"
#                       InstancesFrom 0
#                       ValuesFrom 1
#               </Result>
#               <Result>
#                       Type gauge
#                       InstancePrefix "objperslab"
#                       InstancesFrom 0
#                       ValuesFrom 4
#               </Result>
#       </Table>
#</Plugin>

#<Plugin tcpconns>
#       ListeningPorts false
#       LocalPort "25"
#       RemotePort "25"
#</Plugin>

#<Plugin vmem>
#       Verbose false
#</Plugin>

<Include "/etc/collectd/collectd.conf.d">
        Filter "*.conf"
</Include>
